package com.lh.Mybatis.model;

/**
 * 作者：idea
 * 日期：2018/7/4
 * 描述：
 */
public class Emp {
    public int empNo;
    public int deptNo;
    public String firstName;
    public double salary;

    public int getEmpNo() {
        return empNo;
    }

    public void setEmpNo(int empNo) {
        this.empNo = empNo;
    }

    public int getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(int deptNo) {
        this.deptNo = deptNo;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Emp(int empNo, int deptNo, String firstName, double salary) {
        this.empNo = empNo;
        this.deptNo = deptNo;
        this.firstName = firstName;
        this.salary = salary;
    }

    public Emp(){}

    @Override
    public String toString() {
        return "{" +
                "empNo=" + empNo +
                ", deptNo=" + deptNo +
                ", firstName='" + firstName + '\'' +
                ", salary=" + salary +
                '}';
    }
}
